Optimal. Leaf size=92 \[ \log (x+2) (d-2 e+4 f-8 g+16 h-32 i)+x (e-2 f+4 g-8 h+16 i)+\frac{1}{2} x^2 (f-2 g+4 h-8 i)+\frac{1}{3} x^3 (g-2 h+4 i)+\frac{1}{4} x^4 (h-2 i)+\frac{i x^5}{5} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.268006, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 51, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.039 \[ \log (x+2) (d-2 e+4 f-8 g+16 h-32 i)+x (e-2 f+4 g-8 h+16 i)+\frac{1}{2} x^2 (f-2 g+4 h-8 i)+\frac{1}{3} x^3 (g-2 h+4 i)+\frac{1}{4} x^4 (h-2 i)+\frac{i x^5}{5} \]
Antiderivative was successfully verified.
[In] Int[((2 - x - 2*x^2 + x^3)*(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5))/(4 - 5*x^2 + x^4),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{i x^{5}}{5} + x^{4} \left (\frac{h}{4} - \frac{i}{2}\right ) + x^{3} \left (\frac{g}{3} - \frac{2 h}{3} + \frac{4 i}{3}\right ) + \left (f - 2 g + 4 h - 8 i\right ) \int x\, dx + \left (d - 2 e + 4 f - 8 g + 16 h - 32 i\right ) \log{\left (x + 2 \right )} + \frac{\left (e - 2 f + 4 g - 8 h + 16 i\right ) \int e\, dx}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**3-2*x**2-x+2)*(i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(x**4-5*x**2+4),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0638651, size = 92, normalized size = 1. \[ \log (x+2) (d-2 e+4 f-8 g+16 h-32 i)+x (e-2 f+4 g-8 h+16 i)+\frac{1}{2} x^2 (f-2 g+4 h-8 i)+\frac{1}{3} x^3 (g-2 h+4 i)+\frac{1}{4} x^4 (h-2 i)+\frac{i x^5}{5} \]
Antiderivative was successfully verified.
[In] Integrate[((2 - x - 2*x^2 + x^3)*(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5))/(4 - 5*x^2 + x^4),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.004, size = 122, normalized size = 1.3 \[{\frac{i{x}^{5}}{5}}+{\frac{h{x}^{4}}{4}}-{\frac{i{x}^{4}}{2}}+{\frac{g{x}^{3}}{3}}-{\frac{2\,h{x}^{3}}{3}}+{\frac{4\,i{x}^{3}}{3}}+{\frac{f{x}^{2}}{2}}-g{x}^{2}+2\,h{x}^{2}-4\,i{x}^{2}+ex-2\,fx+4\,gx-8\,hx+16\,ix+\ln \left ( 2+x \right ) d-2\,\ln \left ( 2+x \right ) e+4\,\ln \left ( 2+x \right ) f-8\,\ln \left ( 2+x \right ) g+16\,\ln \left ( 2+x \right ) h-32\,\ln \left ( 2+x \right ) i \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^3-2*x^2-x+2)*(i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4-5*x^2+4),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.70285, size = 113, normalized size = 1.23 \[ \frac{1}{5} \, i x^{5} + \frac{1}{4} \,{\left (h - 2 \, i\right )} x^{4} + \frac{1}{3} \,{\left (g - 2 \, h + 4 \, i\right )} x^{3} + \frac{1}{2} \,{\left (f - 2 \, g + 4 \, h - 8 \, i\right )} x^{2} +{\left (e - 2 \, f + 4 \, g - 8 \, h + 16 \, i\right )} x +{\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} \log \left (x + 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)*(x^3 - 2*x^2 - x + 2)/(x^4 - 5*x^2 + 4),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.282459, size = 113, normalized size = 1.23 \[ \frac{1}{5} \, i x^{5} + \frac{1}{4} \,{\left (h - 2 \, i\right )} x^{4} + \frac{1}{3} \,{\left (g - 2 \, h + 4 \, i\right )} x^{3} + \frac{1}{2} \,{\left (f - 2 \, g + 4 \, h - 8 \, i\right )} x^{2} +{\left (e - 2 \, f + 4 \, g - 8 \, h + 16 \, i\right )} x +{\left (d - 2 \, e + 4 \, f - 8 \, g + 16 \, h - 32 \, i\right )} \log \left (x + 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)*(x^3 - 2*x^2 - x + 2)/(x^4 - 5*x^2 + 4),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.46319, size = 88, normalized size = 0.96 \[ \frac{i x^{5}}{5} + x^{4} \left (\frac{h}{4} - \frac{i}{2}\right ) + x^{3} \left (\frac{g}{3} - \frac{2 h}{3} + \frac{4 i}{3}\right ) + x^{2} \left (\frac{f}{2} - g + 2 h - 4 i\right ) + x \left (e - 2 f + 4 g - 8 h + 16 i\right ) + \left (d - 2 e + 4 f - 8 g + 16 h - 32 i\right ) \log{\left (x + 2 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**3-2*x**2-x+2)*(i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(x**4-5*x**2+4),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.2854, size = 142, normalized size = 1.54 \[ \frac{1}{5} \, i x^{5} + \frac{1}{4} \, h x^{4} - \frac{1}{2} \, i x^{4} + \frac{1}{3} \, g x^{3} - \frac{2}{3} \, h x^{3} + \frac{4}{3} \, i x^{3} + \frac{1}{2} \, f x^{2} - g x^{2} + 2 \, h x^{2} - 4 \, i x^{2} - 2 \, f x + 4 \, g x - 8 \, h x + 16 \, i x + x e +{\left (d + 4 \, f - 8 \, g + 16 \, h - 32 \, i - 2 \, e\right )}{\rm ln}\left ({\left | x + 2 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)*(x^3 - 2*x^2 - x + 2)/(x^4 - 5*x^2 + 4),x, algorithm="giac")
[Out]